import 'package:flutter/material.dart';

class FristPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _FristPageState();
  }
}

class _FristPageState extends State<FristPage> {

  @override
  void dispose() {
    print('dispose frist');
    // TODO: implement dispose
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text('Frist'),
      ),
      body: RaisedButton(
        child: Text('Touched Frist Button'),
        onPressed: () {
          Navigator.of(context).pushNamed('/home');
        },
      ),
    );
  }
}